
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>自动化测试报告</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                margin: 20px;
            }
            h1 {
                color: #333;
            }
            p {
                line-height: 1.6;
            }
            .section {
                margin-bottom: 20px;
                border: 1px solid black; /* 添加边框 */
                padding: 10px;
            }
            table {
                width: 100%;
                border-collapse: collapse;
                margin-top: 20px;
                border: 1px solid black; /* 添加表格外边框 */
            }
            th, td {
                border: 1px solid black; /* 设置边框颜色为黑色 */
                padding: 8px;
                text-align: left;
            }
            th {
                background-color: #f2f2f2;
            }
            .pass-rate {
                font-size: 1.2em;
                font-weight: bold;
                color: red;
            }
        </style>
    </head>
    <body>
        <div class="section">
            <h1>自动化测试报告</h1>
            <p>这是食堂产品线的用例执行结果报告</p>
        </div>
        <div class="section">
            <h2>用例概述</h2>
            <ul>
                <li>总共执行用例数量: 3</li>
                <li>通过的用例数量: 2</li>
                <li>通过率: <span class="pass-rate">66.67%</span></li>
            </ul>
        </div>
        <div class="section">
            <h2>用例详情列表</h2>
            <!-- 表格 -->
            <table>
                <thead>
                    <tr>
                        <th>用例ID</th>
                        <th>用例功能描述</th>
                        <th>通过/失败</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr><td>TC001</td><td>Login functionality</td><td>Passed</td><td>This test checks the login functionality of the application.</td></tr><tr><td>TC002</td><td>Data submission</td><td>Failed</td><td>This test verifies data submission to the server.</td></tr><tr><td>TC003</td><td>User registration</td><td>Passed</td><td>This test ensures user registration works correctly.</td></tr>
                </tbody>
            </table>
        </div>
    </body>
    </html>
    